<%@page import="java.io.* , java.util.*, java.sql.*,  com.myapp.struts.dao.*, com.myapp.struts.beans.*"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title><bean:message key="welcome.title"/></title>
        <html:base/>
        <link href="../../../../css/cms.css" rel="stylesheet" type="text/css">
        <style type="text/css">
            <!--
            .style1 {
                color: #D3F1D5;
                font-weight: bold;
            }
            .style2 {color: #D3F1D5}
            -->
        </style>
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="200" height="570"  valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="navigation">
                        <tr>
                            <th align="center" class="style6"><strong>Creations</strong></th>
                        </tr>
                        <tr>
                            <td>
                                <%
                                  request.getSession(true);
                                  String role = session.getAttribute("role").toString();
                                  MenuDao gd = new MenuDao();
                                  Vector gp = gd.getItems(role, "AHA");
                                  if (gp != null) {
                                      System.out.println("IN..................."+gp.size());
                                      Iterator itg = gp.iterator();
                                      while (itg.hasNext()) {
                                          MenuBean gb = (MenuBean) itg.next();
                                          String pname = gb.getPrivlageName();
                                          String ppath = gb.getPrivlagePath();
                                          System.out.println("pname="+pname);
                                          System.out.println("ppath="+ppath);
                                %>

                                <a href="<%=ppath%>"class="navText" target="supplier"><%=pname%></a><br>

                                <%
                                      }
                                  }
                                %>     </td>
                        </tr>
                        <tr>
                            <th align="center"><span class="style6">Updates</span></th>
                        </tr>
                        <tr>
                            <td align="left">
                                <%
                                 MenuDao gd1 = new MenuDao();
                                     Vector gp1 = gd1.getItems(role, "AHU");
                                                 if (gp1 != null) {
                                     Iterator itg = gp1.iterator();
                                     while (itg.hasNext()) {
                                         MenuBean gb = (MenuBean) itg.next();
                                         String pname = gb.getPrivlageName();
                                         String ppath = gb.getPrivlagePath();
                                         System.out.println("pname="+pname);
                                         System.out.println("ppath="+ppath);
                                %>
                                <a href="<%=ppath%>" class="navText" target="supplier"><%=pname%></a><br>
                                <%
                                      }
                                  }
                                %>       </td>
                        </tr>
                    </table>      </td>
                <td width="777" height="570" colspan="3" align="center" valign="top">
                    <iframe width="100%" height="100%" name="supplier"></iframe></td>
            </tr>


            <tr>
                <td colspan="4" align="center" valign="middle" background="../../images/flash_body1.png">&nbsp;</td>
            </tr>
        </table>
    </body>
</html:html>
